import type { App } from 'vue'
import {
  Button,
  Form,
  Field,
  CellGroup,
  CountDown,
  Tabbar,
  TabbarItem,
  Tab,
  Tabs,
  List,
  Empty,
  Popup,
  NavBar,
  Divider,
  Icon,
  Image as VanImage,
  Uploader,
  DropdownMenu,
  DropdownItem,
  Tag,
  Col,
  Row,
  Checkbox,
  CheckboxGroup
} from 'vant'
import 'vant/lib/index.css'

const components = [
  Button,
  Form,
  Field,
  CellGroup,
  CountDown,
  Tabbar,
  TabbarItem,
  Tab,
  Tabs,
  List,
  Empty,
  Popup,
  NavBar,
  Divider,
  Icon,
  VanImage,
  Uploader,
  DropdownMenu,
  DropdownItem,
  Tag,
  Col,
  Row,
  Checkbox,
  CheckboxGroup
]
export default function (app: App): void {
  for (const component of components) {
    app.use(component)
  }
}
